﻿#ifndef WRWORKMAINACTIONGROUP
#define WRWORKMAINACTIONGROUP

#include "WRWorkMainActionEntry.h"
#include "../../WRSoft-Utility/Structs/WRArray.h"

//表示工作主功能分组。
class WRWorkMainActionGroup
{
private:
    //名称
    QString m_name;
    //标题。
    QString m_title;
    //描述。
    QString m_description;
    //项目集合。
    WRArray<WRWorkMainActionEntry> m_entries;

public:
    //初始化工作主菜单分组。
    WRWorkMainActionGroup(void)
    {
        //add code here
    }
    //初始化工作主菜单分组。
    inline WRWorkMainActionGroup(const QString& name, const QString& title, const QString& description, const WRArray<WRWorkMainActionEntry>& entries)
        : m_name(name), m_title(title), m_description(description), m_entries(entries)
    {
        //add code here
    }

    //复制构造函数。
    inline WRWorkMainActionGroup(const WRWorkMainActionGroup& other)
        : m_name(other.m_name), m_title(other.m_title), m_description(other.m_description), m_entries(other.m_entries)
    {
        //add code here
    }
    //赋值操作符。
    inline WRWorkMainActionGroup& operator=(const WRWorkMainActionGroup& other)
    {
        if (&other != this)
        {
            m_name = other.m_name;
            m_title = other.m_title;
            m_description = other.m_description;
            m_entries = other.m_entries;
        }
        return *this;
    }

    //获取名称。
    inline const QString& name(void) const
    {
        return m_name;
    }
    //获取标题。
    inline const QString& title(void) const
    {
        return m_title;
    }
    //获取描述。
    inline const QString& description(void) const
    {
        return m_description;
    }
    //获取项目集合。
    inline const WRArray<WRWorkMainActionEntry>& entries(void) const
    {
        return m_entries;
    }
};

#endif // WRWORKMAINACTIONGROUP
